package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IEditStoreActivityModel;
import com.wgts.wgts.mvp.model.imp.EditStoreActivityModel;
import com.wgts.wgts.mvp.presenter.IEditStoreActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.EditStoreActivityPresenter;
import com.wgts.wgts.mvp.view.IEditStoreActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

/*
 *
 *
 *   data:2018/10/1121:20
 *
 */
@Module
public class EditStoreActivityModule {
    private IEditStoreActivityView view;

    public EditStoreActivityModule(IEditStoreActivityView view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    public IEditStoreActivityView provideView(){
        return view;
    }

    @ActivityScope
    @Provides
    public IEditStoreActivityModel provideModel(NetService netService){
        return new EditStoreActivityModel(netService);
    }

    @ActivityScope
    @Provides
    public IEditStoreActivityPresenter providePresenter(IEditStoreActivityView view, IEditStoreActivityModel model){
        return new EditStoreActivityPresenter(view, model);
    }
}
